﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Arbore;
using Common;

namespace Algorithms.HillClimbing
{
    public class HillClimbingStrategy:iStrategy
    {
        iHeuristic h;
        public void execute(Satates.State iState, List<Satates.State> fStates, List<Operators.iOperator> opr, ref List<string> log, ref Arbore.Arbore Ab)
        {
            HillClimbing hill = new HillClimbing(iState, fStates, opr, log,ref  Ab);
            hill.setH(h);
            hill.executeAlgorithm(); 
        }
        public void setHeuristic(iHeuristic h)
        {
            this.h = h;
        }
    }
}
